{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>绑定电子邮箱</title>
	<link rel="stylesheet" href="__CDN__/assets/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/css/set.css">
    <link rel="stylesheet" href="__CDN__/assets/css/lanrenzhijia.css">
	<script src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script>
	<script src="__CDN__/assets/libs/bootstrap/dist/js/bootstrap.min.js"></script>
	<script src="__CDN__/assets/js/detail.js"></script>
</head>
<body>
	<div class="heard">
			<div class="heard_return">
				<a href="javascript:history.back();"><img src="__CDN__/assets/img/bikebi/return.png"></a>
			</div>
			<div class="heard_title ">
				<p>绑定电子邮箱</p>
			</div>
	</div>

	<div class="edit_form"  name="form4">
		<form method="post" action="" onsubmit="return tj_form(this)">
			<div class="form_one">登录密码<input type="text" name="" placeholder="请输入登录密码" id="password"></div>
			<div class="form_one">电子邮箱<input type="text" name="email" placeholder="请输入电子邮箱" id="email"></div>
			<div class="form_one">验&nbsp;证&nbsp;码<input type="text" name="captcha" placeholder="请输入验证码" id="code"><a href="">获取验证码</a></div>
			<div class="form_submit"><input type="submit" name="" class="btn btn-defaul" value="提交" style="background-color: #4782DB;"></div>
		</form>
	</div>

      <script>
    	  function tj_form(obj){
              Check_bindemail_form(); 	  
            var url = '{:url("api/user/changeemail")}'; 
            var back= '{:url("index/user/index")}';

            $.ajax({
            	url:url,
            	type:'post',
            	data:$(obj).serialize(),
            	success:function(res){
            		
                   if(res.code==1){

                      alert('绑定邮箱成功');
                      location.href=back;

                   }else{
                   	
                   	alert(res.msg);
                   }
            	},
            	dataType:'json'

            }); 

             return false;
    	  }

    </script>



</body>
</html>
     